/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "video_auditinfo")
//@NamedQueries({@NamedQuery(name = "VideoAuditinfo.findAll", query = "SELECT v FROM VideoAuditinfo v"), @NamedQuery(name = "VideoAuditinfo.findByContentid", query = "SELECT v FROM VideoAuditinfo v WHERE v.contentid = :contentid"), @NamedQuery(name = "VideoAuditinfo.findByServicecode", query = "SELECT v FROM VideoAuditinfo v WHERE v.servicecode = :servicecode"), @NamedQuery(name = "VideoAuditinfo.findByVname", query = "SELECT v FROM VideoAuditinfo v WHERE v.vname = :vname"), @NamedQuery(name = "VideoAuditinfo.findByIntro", query = "SELECT v FROM VideoAuditinfo v WHERE v.intro = :intro"), @NamedQuery(name = "VideoAuditinfo.findByTag", query = "SELECT v FROM VideoAuditinfo v WHERE v.tag = :tag"), @NamedQuery(name = "VideoAuditinfo.findByGenreid", query = "SELECT v FROM VideoAuditinfo v WHERE v.genreid = :genreid"), @NamedQuery(name = "VideoAuditinfo.findByLanguage", query = "SELECT v FROM VideoAuditinfo v WHERE v.language = :language"), @NamedQuery(name = "VideoAuditinfo.findByArea", query = "SELECT v FROM VideoAuditinfo v WHERE v.area = :area"), @NamedQuery(name = "VideoAuditinfo.findByCopyright", query = "SELECT v FROM VideoAuditinfo v WHERE v.copyright = :copyright"), @NamedQuery(name = "VideoAuditinfo.findByPublishtime", query = "SELECT v FROM VideoAuditinfo v WHERE v.publishtime = :publishtime"), @NamedQuery(name = "VideoAuditinfo.findByUserid", query = "SELECT v FROM VideoAuditinfo v WHERE v.userid = :userid"), @NamedQuery(name = "VideoAuditinfo.findByPlaytimes", query = "SELECT v FROM VideoAuditinfo v WHERE v.playtimes = :playtimes"), @NamedQuery(name = "VideoAuditinfo.findByAddtime", query = "SELECT v FROM VideoAuditinfo v WHERE v.addtime = :addtime"), @NamedQuery(name = "VideoAuditinfo.findByStatus", query = "SELECT v FROM VideoAuditinfo v WHERE v.status = :status")})
public class VideoAuditinfo implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "contentid")
    private String contentid;
    @Column(name = "servicecode")
    private String servicecode;
    @Column(name = "vname")
    private String vname;
    @Column(name = "intro")
    private String intro;
    @Column(name = "tag")
    private String tag;
    @Column(name = "genreid")
    private String genreid;
    @Column(name = "language")
    private String language;
    @Column(name = "area")
    private String area;
    @Column(name = "copyright")
    private String copyright;
    @Column(name = "publishtime")
    @Temporal(TemporalType.TIMESTAMP)
    private Date publishtime;
    @Column(name = "userid")
    private String userid;
    @Column(name = "playtimes")
    private Integer playtimes;
    @Basic(optional = false)
    @Column(name = "addtime")
    @Temporal(TemporalType.TIMESTAMP)
    private Date addtime;
    @Column(name = "status")
    private String status;

    public VideoAuditinfo() {
    }

    public VideoAuditinfo(String contentid) {
        this.contentid = contentid;
    }

    public VideoAuditinfo(String contentid, Date addtime) {
        this.contentid = contentid;
        this.addtime = addtime;
    }

    public String getContentid() {
        return contentid;
    }

    public void setContentid(String contentid) {
        this.contentid = contentid;
    }

    public String getServicecode() {
        return servicecode;
    }

    public void setServicecode(String servicecode) {
        this.servicecode = servicecode;
    }

    public String getVname() {
        return vname;
    }

    public void setVname(String vname) {
        this.vname = vname;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public String getGenreid() {
        return genreid;
    }

    public void setGenreid(String genreid) {
        this.genreid = genreid;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getCopyright() {
        return copyright;
    }

    public void setCopyright(String copyright) {
        this.copyright = copyright;
    }

    public Date getPublishtime() {
        return publishtime;
    }

    public void setPublishtime(Date publishtime) {
        this.publishtime = publishtime;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public Integer getPlaytimes() {
        return playtimes;
    }

    public void setPlaytimes(Integer playtimes) {
        this.playtimes = playtimes;
    }

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (contentid != null ? contentid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof VideoAuditinfo)) {
            return false;
        }
        VideoAuditinfo other = (VideoAuditinfo) object;
        if ((this.contentid == null && other.contentid != null) || (this.contentid != null && !this.contentid.equals(other.contentid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.VideoAuditinfo[contentid=" + contentid + "]";
    }

}
